widget: Remove gtk_widget_size_request
authorTimm Bäder <mail@baedert.org>
Tue, 4 Oct 2016 16:10:39 +0000 (18:10 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkwidget.c
gtk/gtkwidget.h

index 9c378acb2cc072cb9d48e2c06bdc64e0fb9e71a8..73f846da6d01126903555d9258904691126e2371 100644 (file)
@@ -5073,7 +5073,6 @@ gtk_widget_get_scale_factor
 GtkTickCallback
 gtk_widget_add_tick_callback
 gtk_widget_remove_tick_callback
-gtk_widget_size_request
 gtk_widget_get_child_requisition
 gtk_widget_size_allocate
 gtk_widget_size_allocate_with_baseline
index b910923dbbede9e19ef411e1e0e8728512a2138c..3080010ee4740b308f6585fd3859c83aa885bd66 100644 (file)
@@ -5539,35 +5539,6 @@ gtk_widget_get_frame_clock (GtkWidget *widget)
     }
 }
 
-/**
- * gtk_widget_size_request:
- * @widget: a #GtkWidget
- * @requisition: (out): a #GtkRequisition to be filled in
- *
- * This function is typically used when implementing a #GtkContainer
- * subclass.  Obtains the preferred size of a widget. The container
- * uses this information to arrange its child widgets and decide what
- * size allocations to give them with gtk_widget_size_allocate().
- *
- * You can also call this function from an application, with some
- * caveats. Most notably, getting a size request requires the widget
- * to be associated with a screen, because font information may be
- * needed. Multihead-aware applications should keep this in mind.
- *
- * Also remember that the size request is not necessarily the size
- * a widget will actually be allocated.
- *
- * Deprecated: 3.0: Use gtk_widget_get_preferred_size() instead.
- **/
-void
-gtk_widget_size_request (GtkWidget     *widget,
-                        GtkRequisition *requisition)
-{
-  g_return_if_fail (GTK_IS_WIDGET (widget));
-
-  gtk_widget_get_preferred_size (widget, requisition, NULL);
-}
-
 /**
  * gtk_widget_get_child_requisition:
  * @widget: a #GtkWidget
index 2d9fce6dacf8498f51ac545343855462455aca8b..f9d42c0cb31472352310cfc9abb3d95a072aa689 100644 (file)
@@ -664,9 +664,6 @@ void       gtk_widget_queue_allocate      (GtkWidget           *widget);
 GDK_AVAILABLE_IN_3_8
 GdkFrameClock* gtk_widget_get_frame_clock (GtkWidget           *widget);
 
-GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_size)
-void       gtk_widget_size_request        (GtkWidget           *widget,
-                                           GtkRequisition      *requisition);
 GDK_AVAILABLE_IN_ALL
 void      gtk_widget_size_allocate       (GtkWidget           *widget,
                                           GtkAllocation       *allocation);